package com.zhuoshi.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhuoshi.entity.Receive;
import com.zhuoshi.mapper.ReceiveMapper;
import com.zhuoshi.service.ReceiveService;

@Service
public class ReceiveServiceImpl implements ReceiveService{

	@Autowired
	private ReceiveMapper receiveMapper;
	
	@Override
	public List<Receive> showReceive() {
		return receiveMapper.selectByExample(null);
	}
	
	public void addReceive(Receive receive) {
		receiveMapper.insertSelective(receive);
	}

}
